############################################################
###########             :                        ##################
###########          :                                      ################
###########    : vBulletin Version 3.x.x                          ################
###########      http://nabdh-alm3ani.net                              #################
############################################################


     
    
       
:
*******************************************
     :
1- commbull.php
2- commbull_phrases.php
   : admincp
      
     : commbull_phrases.php

*******************************************

  : vb/admincp/index.php
  :
    construct_nav_option($vbphrase['view_banned_users'], "../$modcpdir/banning.php?do=modify", '<br />');

    :
    construct_nav_option('  ', 'commbull.php?', '<br />');

     

*******************************************

   :

     :
1-  : modifyoptions
2-  : vb/profile.php 

 :
   :     
  :

1-   : modifyoptions

  :

<tr>
      	<td><label for="cb_pmpopup"><input type="checkbox" name="pmpopup" value="1" id="cb_pmpopup" $checked[pmpopup] />$vbphrase[show_pm_popup]</label></td>
</tr>



    :

<tr>
	<td><label for="commbull"><input type="checkbox" name="commbull" value="1" id="commbull" $checked[receivebulletin] />$vbphrase[receive_email_from_commbull]</label></td>
</td>

*******************************************

2-  :  vb/profile.php 

   :
if ($_POST['do'] == 'updateoptions')
{
	require_once('./includes/functions_misc.php');


    :
      globalize($_POST, array('newstyleset' => INT, 'dst' => INT, 'showvbcode' => INT, 'pmpopup' => INT, 'umaxposts' => INT, 'prunedays' => INT,
							'timezoneoffset', 'startofweek' => INT, 'languageid' => INT, 'threadedmode' => INT, 'invisible' => INT, 'autosubscribe' => INT,
							'options', 'modifyavatar'));

  : 
      globalize($_POST, array('commbull' => INT, 'newstyleset' => INT, 'dst' => INT, 'showvbcode' => INT, 'pmpopup' => INT, 'umaxposts' => INT, 'prunedays' => INT,
							'timezoneoffset', 'startofweek' => INT, 'languageid' => INT, 'threadedmode' => INT, 'invisible' => INT, 'autosubscribe' => INT,
							'options', 'modifyavatar'));


  :

	$DB_site->query("
		UPDATE " . TABLE_PREFIX . "user SET
			" . $updatestyles . "
			showvbcode = $showvbcode,
			pmpopup = $pmpopup,
			maxposts = $umaxposts,
			daysprune = $prunedays,
			timezoneoffset = '$timezoneoffset',
			startofweek = $startofweek,
			languageid = $languageid,
			threadedmode = $threadedmode,
			autosubscribe = $autosubscribe,
			options = " . convert_array_to_bits($options, $_USEROPTIONS) . "
		WHERE userid = $bbuserinfo[userid]
	");


  : 

	$receivebulletin = ($commbull) ? 1 : 0;
	
	$DB_site->query("
		UPDATE " . TABLE_PREFIX . "user SET
			receivebulletin = $receivebulletin
		WHERE userid = $bbuserinfo[userid]
	");



*******************************************
        
############################################################
###########             :                        ##################
###########          :                                      ################
###########    : vBulletin Version 3.x.x                          ################
###########      http://nabdh-alm3ani.net                              #################
############################################################